/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import java.util.ArrayList;
import java.util.List;
import persistencia.AreaProfissionalDao;


/**
 *
 * @author VENANCIO
 */
public class AreaProfissional {
    private Integer cod;
    private String descricao;
    
    public AreaProfissional(){
        
    }

    public Integer getCod() {
        return cod;
    }

    public void setCod(Integer cod) {
        this.cod = cod;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }
    
    public List<AreaProfissional> getListaAreaProfissional(){
        List<AreaProfissional> listaAreaProfissional = new ArrayList<AreaProfissional>();
        AreaProfissionalDao areaProfissional = new AreaProfissionalDao();
        
        listaAreaProfissional = areaProfissional.getListaAreaProfissional();
        
        return listaAreaProfissional;
    }
    
    
}
